﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Smartec.Accounts.Camel.AMS.WebApp.Models.ResetPasswordModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Reset Password
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="HeaderContent" runat="server">
    <script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>" type="text/javascript"></script>
<%--    <script src="<%: Url.Content("~/Scripts/MicrosoftAjax.js") %>" type="text/javascript"></script>
    <script src="<%: Url.Content("~/Scripts/MicrosoftMvcAjax.js") %>" type="text/javascript"></script>--%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Reset Password</h2>

<%Html.EnableClientValidation(); %>

<% using (Html.BeginForm()) { %>
    <%: Html.ValidationSummary(true) %>
    <%: Html.HiddenFor(model => model.UserName) %>
    <fieldset>
        <legend>Reset Password</legend>
        <br />
        <table>
        <tr><td>
        <div class="editor-label">
            Email
        </div></td><td>
        <div class="editor-field">
            <%: Model.UserName %>
        </div></td></tr>

        <tr><td>
        <div class="editor-label">
            <%: Html.LabelRequiredFor(model => model.NewPassword) %>
        </div></td><td>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.NewPassword) %>
            <%: Html.ValidationMessageFor(model => model.NewPassword) %>
        </div></td></tr>

        <tr><td>
        <div class="editor-label">
            <%: Html.LabelRequiredFor(model => model.ConfirmPassword) %>
        </div></td><td>
        <div class="editor-field">
            <%: Html.EditorFor(model => model.ConfirmPassword) %>
            <%: Html.ValidationMessageFor(model => model.ConfirmPassword) %>
        </div></td></tr>

        <tr>
                <td colspan="2">
                    <div class="editor-label">
                        <input type="submit" value="Reset"/>
                    </div>
                </td>
            </tr>
            </table>
    </fieldset>
<% } %>

<div>
    <%: Html.ActionLink("Back to List", "Index") %>
</div>

</asp:Content>

